package com.lianxi.rocketmqmvc;

/**
 * Description : rocketMQ 静态属性
 * Date : 2018/1/22 17:39
 *
 * @author : fy
 */
public class RocketMQConstant {

    //----------------------------------- 统一资源库配置 -------------------------------------------

    public static final String ROCKETMQ_GROUP_IMPORTDATASOURCE = "group_importdatasource_";

    /**
     * 导数据队列消息topic
     */
    public static final String ROCKETMQ_TOPIC_IMPORTDATASOURCE = "topic_importdatasource_";

    /**
     * 导数据队列 tag
     */
    public static final String ROCKETMQ_TAG_IMPORTDATASOURCE = "tag_t1rdb_";

    /**
     * 日志生产者 group
     */
    public static final String ROCKETMQ_LOG_PRODUCER_GROUP = "producer_log_group";

    /**
     * 站点信息更新的生产者
     */
    public static final String ROCKETMQ_SITE_PRODUCER_GROUP = "producer_site_group";

    /**
     * 栏目删除队列
     */
    public static final String ROCKETMQ_CHANNEL_DEL_PRODUCER_GROUP = "producer_channel_del_gourp";

    /**
     * 栏目删除队列
     */
    public static final String ROCKETMQ_COUNT_GROUP = "producer_count";

    /**
     * 日志队列消息topic
     */
    public static final String ROCKETMQ_LOG_TOPIC = "systemlog";

    /**
     * 站点信息的消费者Topic
     */
    public static final String ROCKETMQ_SITE_TOPIC = "siteInfo";

    /**
     * 接口计数信息的消费者Topic
     */
    public static final String ROCKETMQ_COUNT_TOPIC = "apiCount";
    /**
     * 日志队列tag
     */
    public static final String ROCKETMQ_CMS_TAG = "t1cms";

    //----------------------------------- beetl 静态页配置 -------------------------------------------
    /**
     * 静态页生产者 group
     */
    public static final String ROCKETMQ_STATIC_PRODUCER_GROUP = "producer_static_group";

    /**
     * 静态页普通队列消息topic
     */
    public static final String ROCKETMQ_STATIC_NORMAL_TOPIC = "beetl_normal";

    public static final String ROCKETMQ_STATIC_INDEX_TOPIC = "beetl_index";

    /**
     * 静态页生产者 group （全站生成）
     */
    public static final String ROCKETMQ_STATIC_BATCH_PRODUCER_GROUP = "producer_static_batch_group";

    /**
     * 全站生成专用topic
     */
    public static final String BATCH_TOPIC = "mass_consumption";

    /**
     * 站点tag  site_siteId
     */
    public static final String SITE_TAGS = "site_";

    public static final String CACHE = "cache_";

    //----------------------------------- keys -------------------------------------------

    /**
     * 详情页key detail_newsId
     */
    public static final String STATIC_DETAIL_KEY = "detail_";
    /**
     * 列表页key list_channelId
     */
    public static final String STATIC_LIST_KEY = "list_";

    /**
     * 栏目标签列表页key list_channelId_labelId
     */
    public static final String STATIC_LABEL_LIST_KEY = "list_";

    /**
     * 首页key
     */
    public static final String STATIC_INDEX_KEY = "index";
    /**
     * wap详情页key mobile_detail_newsId
     */
    public static final String STATIC_MOBILE_DETAIL_KEY = "mobile_detail_";
    /**
     * wap列表页key mobile_detail_channelId
     */
    public static final String STATIC_MOBILE_LIST_KEY = "mobile_list_";
    /**
     * wap首页key
     */
    public static final String STATIC_MOBILE_INDEX_KEY = "mobile_index";
    /**
     * 模板key modular_id
     */
    public static final String STATIC_MODULAR_KEY = "modular_";
    /**
     * 专题key subject_id
     */
    public static final String STATIC_SUBJECT_KEY = "subject_";
    /**
     * js key js_id
     */
    public static final String STATIC_JS_KEY = "js_";

    /**
     * child_channel_{pid}  根据父栏目id缓存子栏目信息
     */
    public static final String CHILD_CHANNEL = "cms:child_channel_";

    public static final int ROCKET_TYPE_NORMAL = 0;

    public static final int ROCKET_TYPE_BATCH = 1;

    public static final int ROCKET_TYPE_LOG = 2;

    public static final int ROCKET_TYPE_SITE = 3;

    public static final int ROCKET_TYPE_CHANNEL_DEL = 4;



    public static final String ROCKETMQ_ROLE_TOPIC = "t1role";

    public static final String ROCKETMQ_BEET_CACHE_TOPIC = "beetl_cache";

    public static final String ROCKETMQ_CHANNEL_DEL_TOPIC = "channel_del";

    public static final String ROCKETMQ_ROLE_GROUP = "sso_role_group_cms";

    public static final String ROCKETMQ_CACHE_GROUP = "cache_group_cms";

    public static final String ROCKETMQ_CHANNEL_DEL_GROUP = "channel_del_cms";
}

